.vita-switch {
  
  -webkit-appearance: none;
  position: relative;
  width: 52px;
  height: 32px;
  border: 1px solid #dfdfdf;
  outline: 0;
  border-radius: 16px;
  background-color: #dfdfdf;

  &:before, &:after {
    content: " ";
    position: absolute;
    top: 0; left: 0;
    border-radius: 15px;
    transition: transform .3s;
    height: 30px;
  }
  
  &:before {
    width: 50px;
    background-color: #fdfdfd;
  }

  &:after {
    width: 30px;
    background-color: #FFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  }

  &:checked {
    border-color: #04be02;
    background-color: #04be02;
  
    &:before {
      transform: scale(0)
    }

    &:after {
      transform: translateX(20px);
    }

  }
}